package com.max.xihu.patterns.proxy.dynamic;

import com.max.xihu.patterns.proxy.common.IUser;

/**
 * @Author: Max
 * @Date: 2020-09-13 15:31
 * @Description:
 */
public class Person implements IUser {

    private String name;

    public Person(String name){
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println(name+"吃饭饭");
    }

    @Override
    public void work() {
        System.out.println(name+"搞工作");
    }

    @Override
    public void sleep() {
        System.out.println(name+"睡觉觉");
    }

    @Override
    public IUser getProxy() {
        return null;
    }
}
